package com.alipay.app.groupmeal.standard.offline.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

import lombok.Data;

import org.greenrobot.greendao.annotation.Generated;

import java.util.Date;

@Entity(indexes = {
        @Index(value = "id DESC", unique = true)
})
@Data
public class OrderBean {

    @Id
    private Long id;

    //是否上报过
    private Boolean havePost = false;

    //订单金额
    private String amount;

    //uid
    private String uid;

    //authCode
    private String authCode;

    //订单状态
    private Boolean success = false;

    //失败类型
    private String errorType;

    //Cardno
    private String cardno;

    //灶类
    private String zl;

    //餐次
    private String dinner;

    //用户姓名
    private String userName;

    //唯一设备单号
    private String tradeNo;

    //创建时间
    private Date createTime;

    private String terminalParams;

@Generated(hash = 1804456606)
public OrderBean(Long id, Boolean havePost, String amount, String uid,
        String authCode, Boolean success, String errorType, String cardno,
        String zl, String dinner, String userName, String tradeNo,
        Date createTime, String terminalParams) {
    this.id = id;
    this.havePost = havePost;
    this.amount = amount;
    this.uid = uid;
    this.authCode = authCode;
    this.success = success;
    this.errorType = errorType;
    this.cardno = cardno;
    this.zl = zl;
    this.dinner = dinner;
    this.userName = userName;
    this.tradeNo = tradeNo;
    this.createTime = createTime;
    this.terminalParams = terminalParams;
}

@Generated(hash = 1725534308)
public OrderBean() {
}

public Long getId() {
    return this.id;
}

public void setId(Long id) {
    this.id = id;
}

public Boolean getHavePost() {
    return this.havePost;
}

public void setHavePost(Boolean havePost) {
    this.havePost = havePost;
}

public String getAmount() {
    return this.amount;
}

public void setAmount(String amount) {
    this.amount = amount;
}

public String getUid() {
    return this.uid;
}

public void setUid(String uid) {
    this.uid = uid;
}

public String getAuthCode() {
    return this.authCode;
}

public void setAuthCode(String authCode) {
    this.authCode = authCode;
}

public Boolean getSuccess() {
    return this.success;
}

public void setSuccess(Boolean success) {
    this.success = success;
}

public String getErrorType() {
    return this.errorType;
}

public void setErrorType(String errorType) {
    this.errorType = errorType;
}

public String getCardno() {
    return this.cardno;
}

public void setCardno(String cardno) {
    this.cardno = cardno;
}

public String getZl() {
    return this.zl;
}

public void setZl(String zl) {
    this.zl = zl;
}

public String getDinner() {
    return this.dinner;
}

public void setDinner(String dinner) {
    this.dinner = dinner;
}

public String getUserName() {
    return this.userName;
}

public void setUserName(String userName) {
    this.userName = userName;
}

public String getTradeNo() {
    return this.tradeNo;
}

public void setTradeNo(String tradeNo) {
    this.tradeNo = tradeNo;
}

public Date getCreateTime() {
    return this.createTime;
}

public void setCreateTime(Date createTime) {
    this.createTime = createTime;
}

public String getTerminalParams() {
    return this.terminalParams;
}

public void setTerminalParams(String terminalParams) {
    this.terminalParams = terminalParams;
}

}

